<?php
if (!defined('EZSITETPL_SOAP')) die('access violation error!');

include_once('func_utils.php');
include_once('func_template.php');

define('DS', DIRECTORY_SEPARATOR);

define('ROOT', dirname(__FILE__));
define('P_TPL', realpath(ROOT.DS.'../..'.DS.'templates/sitestar12'));

define('PRE_SCRSHOT_URL', _urlprefix().URL_SCRSHOT);
define('PRE_DOWNLOAD_URL', _urlprefix().URL_DOWNLOAD);
define('PRE_DOWNLOAD_URL2', _urlprefix().URL_DOWNLOAD2);

/** Load mysql connection */
$db = mysqli_connect(DB_HOST, DB_USER, DB_PASS);
mysqli_set_charset($db, DB_CHAR);
mysqli_select_db($db, DB_NAME);

